package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 直播间消息
 */
@ApiModel(value = "com-lanchetech-entity-RoomMessage")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoomMessage implements Serializable {
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 消息用户id
     */
    @ApiModelProperty(value = "消息用户id")
    private Long userId;

    /**
     * 主播用户id
     */
    @ApiModelProperty(value = "主播用户id")
    private Long anchorUserId;

    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    private String type;

    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息内容")
    private String content;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 直播间id
     */
    @ApiModelProperty(value = "直播间id")
    private Long roomId;

    private static final long serialVersionUID = 1L;
}